Xbasic

INET::SSLSocket::Accept Method

Syntax

Result as CallResult = INET::SSLSocket::Accept(AcceptedSocket BYREF as INET::Socket [, Timeout as N [, HandshakeReadTimeout as N = 500 ]])

Arguments

Result

A CallResult object that provides success or failure information.

AcceptedSocket BYREF

An INET::Socket Object.

Timeout

The number of seconds before the method returns.

HandshakeReadTimeout

N = 500

Description

The INET::SSLSocket::Accept() method accepts a new connection (the socket must already be listening). The method returns a status object with information about the success of the call. If the call is successful, AcceptedSocket contains the new instance of INET::Socket. HandshakeReadTimeout is appropriate for SSL sockets only.

Example

Result = MyListener.Accept(AcceptedSocket, 750)
         if Result.Success then

See Also